* {
    margin: 0;
    padding: 0;
}

.container {
    width: 4rem;
    height: 4.14rem;
    margin: 30px auto;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
}

.item {
    width: 0.24rem;
    height: 1.5rem;
    border-radius: 25px;
    transition: all 0.5s ease;
}

.item:nth-child(1) {
    background: url("../images/item1.jpg") center/cover no-repeat;
}

.item:nth-child(2) {
    background: url("../images/item2.jpg") center/cover no-repeat;
}

.item:nth-child(3) {
    background: url("../images/item3.jpg") center/cover no-repeat;
}

.item:nth-child(4) {
    background: url("../images/item4.jpg") center/cover no-repeat;
}

.item:nth-child(5) {
    background: url("../images/item5.jpg") center/cover no-repeat;
}

.active {
    width: 2.4rem;
}